router.config(['$routeProvider','$locationProvider',function($routeProvider,$locationProvider) {
    $routeProvider.when('/server',{
        templateUrl:'/server/template/index.html',
        controller:"ServerIndexController"
    });

    $routeProvider.otherwise({
        redirectTo:'/server'
    });
}]);